<?php 
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<style>
    .subnav{display: none;}
    .table-list table,.table-list table th{border: 1px solid #c1c1c1;}

    .table-list tbody td{border: 1px solid #c1c1c1;}

</style>
<div class="pad-lr-10">
<form name="myform" action="?m=formguide&c=formguide_info&a=delete" method="post">
<div class="table-list" style="margin-top: 50px;">
    <table width="100%" cellspacing="0" border="0" cellpadding="0">
        <thead>
            <tr>
            <th width="35" align="center"><input type="checkbox" value="" id="check_box" onclick="selectall('did[]');"></th>
                <th width='100' align="center">姓名</th>
                <th width='100' align="center">电话</th>
                <th width='450' align="center">报名课程</th>
                <th width='200' align="center">是否我院产检 </th>
                <th width='200' align="center">预产期</th>
                <th width='200' align="center">介绍新孕妈</th>
                <th width='200' align="center">是否首次听课</th>

                <th width='200' align="center">推荐人</th>
			    <th width='200' align="center"><?php echo L('userip')?></th>
			    <th width='200' align="center"><?php echo L('times')?></th>

            </tr>
        </thead>
    <tbody>
 <?php 
if(is_array($datas)){

	foreach($datas as $d){
?>   
	<tr>
	<td align="center">
	<input type="checkbox" name="did[]" value="<?php echo $d['dataid']?>">
	</td>
	<td align="center"><?php echo $d['z_name']?> </td>
        <td align="center"><?php echo $d['z_tel']?> </td>
        <td align="center"><?php echo $d['group2']?> </td>
        <td align="center"><?php echo $d['group_1']?> </td>
        <td align="center"><?php echo $d['yz']?> </td>
        <td align="center"><?php echo $d['yz_1']?> </td>
        <td align="center"><?php echo $d['isfirst']?> </td>
        <td align="center"><?php echo $d['vip']?> </td>
	<td align="center"><?php echo $d['ip']?></td>
	<td align="center"><?php echo date('Y-m-d', $d['datetime'])?></td>

	</tr>
<?php 
	}
}
?>
</tbody>
    </table>
  
    <div class="btn"><label for="check_box"><?php echo L('selected_all')?>/<?php echo L('cancel')?></label>
		<!--<input name="submit" type="submit" class="button" value="<?php /*echo L('remove_all_selected')*/?>" onClick="document.myform.action='?m=formguide&c=formguide_info&a=public_delete&formid=<?php /*echo $formid*/?>';return confirm('<?php /*echo L('affirm_delete')*/?>')">-->&nbsp;&nbsp;</div>  </div>
 <div id="pages"><?php echo $pages;?></div>
</form>
</div>
</body>
</html>
<script type="text/javascript">
function check(id, did, title) {
	window.top.art.dialog({id:'check'}).close();
	window.top.art.dialog({title:'<?php echo L('check')?>--'+title+'<?php echo L('submit_info')?>', id:'edit', iframe:'?m=formguide&c=formguide_info&a=public_view&formid='+id+'&did='+did ,width:'700px',height:'500px'}, function(){window.top.art.dialog({id:'check'}).close()});
}
</script>